home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / m / maxonc++2.dms / maxonc++2.adf / MCPIncl.lha / stdarg.h < prev    next >
C/C++ Source or Header  |  1992-04-07  |  345b  |  12 lines

  1. #ifndef __INCLUDE_STDARG_H
  2. #define __INCLUDE_STDARG_H
  3.  
  4. typedef unsigned int va_list;
  5.  
  6. #define va_start(AP,LASTARG) (AP)=(unsigned int)(&LASTARG)+sizeof(LASTARG)
  7. #define va_arg(AP,TYPE) ((AP)+=sizeof(TYPE), \
  8.                          sizeof(TYPE)>1 ? ((AP)=(AP)+1&(-2)):(AP), \
  9.                          ((TYPE*)AP)[-1])
  10. #define va_end(AP)
  11. #endif
  12.